<?php
namespace app\business\model;
use think\Model;
use think\Db;

class Cms extends Model
{
    public function getNotice()
    {
        $result = Db::table("business_cms")->where("type=2")->order("id desc")->find();
        return $result;
    }
    public function getAnnouncement()
    {
        $result = Db::table("business_cms")->where("type=1")->order("id desc")->find();
        return $result;
    }
}